<template>
  <view :style="themeColor">
    <view class="page">
      <view class="flex flex-direction flex-wrap align-stretch benben-position-layout flex saleDetails_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub saleDetails_fd0_0'>
          <view class='flex flex-wrap align-center saleDetails_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  saleDetails_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='saleDetails_fd0_0_c1_c0'>大货专区详情</text>
          </view>
          <view class='flex flex-wrap align-center justify-end saleDetails_fd0_0_c0'>
            <image class='saleDetails_fd0_0_c2_c0' mode="aspectFit" :src='STATIC_URL+"7.png"'></image>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>

      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout saleDetails_flex_1">
        <!-- <view class='flex flex-wrap align-center saleDetails_fd1_0'>
          <image class='grainDetails_fd1_0_c0_c0' mode="aspectFill" :src='info.liangzhan_info.zhaopaifengmian[0]'>
          </image>
          <view class='flex flex-direction flex-wrap align-stretch flex-sub'>
            <text class='grainDetails_fd1_0_c0_c1_c0'>{{info.liangzhan_info.mingcheng}}</text>
            <text class='grainDetails_fd1_0_c0_c1_c1'>{{info.liangzhan_info.chengshi}}</text>
            <view class='flex flex-wrap align-center grainDetails_fd1_0_c0_c1_c2'>
              <text class='grainDetails_fd1_0_c0_c1_c2_c0'>经营</text>
              <text class='grainDetails_fd1_0_c0_c1_c2_c0'>{{info.liangzhan_info.jingyingnianxian}}年</text>
              <text class='grainDetails_fd1_0_c0_c1_c2_c0'>丨距您</text>
              <text class='grainDetails_fd1_0_c0_c1_c2_c3'>{{info.liangzhan_info.distance || 0}}</text>
            </view>
            <view class=' grainDetails_fd1_0_c0_c1_c3'>
              <text class='grainDetails_fd1_0_c0_c1_c3_c0'>{{info.liangzhan_info.liangzhan_cate_pid1_text}}
                <text
                  v-if="info.liangzhan_info.liangzhan_cate_pid2_text">，</text>{{info.liangzhan_info.liangzhan_cate_pid2_text}}<text
                  v-if="info.liangzhan_info.liangzhan_cate_pid3_text">，</text>{{info.liangzhan_info.liangzhan_cate_pid3_text}}</text>
              <view class="flex margin-top-sm">
                <view class='flex flex-wrap align-center grainDetails_fd1_0_c0_c1_c3_c1'
                  v-if="info.liangzhan_info.liangzhan_cate_pid4_text">
                  <text
                    class='grainDetails_fd1_0_c0_c1_c3_c1_c0'>{{info.liangzhan_info.liangzhan_cate_pid4_text}}</text>
                </view>
                <view class='flex flex-wrap align-center grainDetails_fd1_0_c0_c1_c3_c1'
                  v-if="info.liangzhan_info.liangzhan_cate_pid5_text">
                  <text
                    class='grainDetails_fd1_0_c0_c1_c3_c1_c0'>{{info.liangzhan_info.liangzhan_cate_pid5_text}}</text>
                </view>
                <view class='flex flex-wrap align-center grainDetails_fd1_0_c0_c1_c3_c1'
                  v-if="info.liangzhan_info.liangzhan_cate_pid6_text">
                  <text
                    class='grainDetails_fd1_0_c0_c1_c3_c1_c0'>{{info.liangzhan_info.liangzhan_cate_pid6_text}}</text>
                </view>
              </view>

            </view>
          </view>
        </view> -->
        <view class='flex flex-direction flex-wrap align-stretch saleDetails_fd1_0'>
          <view class='flex flex-wrap align-center justify-between saleDetails_fd1_0_c0'>
            <text class='saleDetails_fd1_0_c0_c0'>{{info.leixing_name}}品种</text>
            <view class='flex flex-wrap align-center'>
              <text class='saleDetails_fd1_0_c0_c1_c0'>{{info.pinzhong_name}}</text>
            </view>
          </view>
          <view class='flex flex-wrap align-center justify-between saleDetails_fd1_0_c0'>
            <text class='saleDetails_fd1_0_c0_c0'>提货地区</text>
            <view class='flex flex-wrap align-center'>
              <text class='saleDetails_fd1_0_c0_c1_c0'>{{info.tihuo}}</text>
            </view>
          </view>
          <view class='flex flex-wrap align-center solid-bottom justify-between saleDetails_fd1_0_c2'>
            <text class='saleDetails_fd1_0_c0_c0'>产地</text>
            <view class='flex flex-wrap align-center'>
              <text class='saleDetails_fd1_0_c0_c1_c0'>{{info.chandi}}</text>
            </view>
          </view>
          <view class='flex flex-wrap align-center solid-bottom justify-between saleDetails_fd1_0_c2'>
            <text class='saleDetails_fd1_0_c0_c0'>数量</text>
            <view class='flex flex-wrap align-center'>
              <text class='saleDetails_fd1_0_c0_c1_c0'>{{info.shuliang}}吨</text>
            </view>
          </view>
          <view class='flex flex-wrap solid-bottom align-center justify-between saleDetails_fd1_0_c2'>
            <text class='saleDetails_fd1_0_c0_c0'>价格</text>
            <view class='flex flex-wrap align-center'>
              <text class='saleDetails_fd1_0_c0_c1_c0'>{{info.jiage}}</text>
              <text class='saleDetails_fd1_0_c0_c1_c0'>元/斤</text>
            </view>
          </view>
        </view>

        <view class='flex flex-direction flex-wrap align-stretch saleDetails_fd1_1'>
          <view class='flex flex-wrap align-center saleDetails_fd1_1_c0'>
            <text class='saleDetails_fd1_1_c0_c0'>粮质详情</text>
          </view>
          <view class='flex flex-wrap align-start saleDetails_fd1_1_c1'>
            <view class='flex flex-direction flex-wrap align-start'>
              <view class='flex flex-wrap align-center saleDetails_fd1_1_c1_c0_c1' style="width: 350rpx;">
                <text class='saleDetails_fd1_1_c1_c0_c0_c0'>产地</text>
                <text class='saleDetails_fd1_1_c1_c0_c0_c1'>{{info.chandi}}</text>
              </view>
              <view class='flex flex-wrap align-center saleDetails_fd1_1_c1_c0_c1'>
                <text class='saleDetails_fd1_1_c1_c0_c0_c0'>等级</text>
                <text class='saleDetails_fd1_1_c1_c0_c0_c1'>{{info.dengji}}</text>
              </view>
              <view class='flex flex-wrap align-center saleDetails_fd1_1_c1_c0_c1'>
                <text class='saleDetails_fd1_1_c1_c0_c0_c0'>水分</text>
                <text class='saleDetails_fd1_1_c1_c0_c0_c1'>{{info.shuifen}}</text>
              </view>
              <view class='flex flex-wrap align-center saleDetails_fd1_1_c1_c0_c1'>
                <text class='saleDetails_fd1_1_c1_c0_c0_c0'>霉变/赤霉</text>
                <text class='saleDetails_fd1_1_c1_c0_c0_c1'>{{info.meibian}}</text>
              </view>
              <view class='flex flex-wrap align-center saleDetails_fd1_1_c1_c0_c1'>
                <text class='saleDetails_fd1_1_c1_c0_c0_c0'>黄曲</text>
                <text class='saleDetails_fd1_1_c1_c0_c0_c1'>{{info.huangqu}}</text>
              </view>
              <view class='flex flex-wrap align-center saleDetails_fd1_1_c1_c0_c1'>
                <text class='saleDetails_fd1_1_c1_c0_c0_c0'>赤霉烯酮</text>
                <text class='saleDetails_fd1_1_c1_c0_c0_c1'>{{info.chimeixitong}}</text>
              </view>
            </view>
            <view class='flex flex-direction flex-wrap align-start'>
              <view class='flex flex-wrap align-center saleDetails_fd1_1_c1_c0_c1'>
                <text class='saleDetails_fd1_1_c1_c0_c0_c0'>年份</text>
                <text class='saleDetails_fd1_1_c1_c0_c0_c1'>{{info.nianfen}}</text>
              </view>
              <view class='flex flex-wrap align-center saleDetails_fd1_1_c1_c0_c1'>
                <text class='saleDetails_fd1_1_c1_c0_c0_c0'>杂质</text>
                <text class='saleDetails_fd1_1_c1_c0_c0_c1'>{{info.zazhi}}</text>
              </view>
              <view class='flex flex-wrap align-center saleDetails_fd1_1_c1_c0_c1'>
                <text class='saleDetails_fd1_1_c1_c0_c0_c0'>容重</text>
                <text class='saleDetails_fd1_1_c1_c0_c0_c1'>{{info.rongzhong}}</text>
              </view>
              <view class='flex flex-wrap align-center saleDetails_fd1_1_c1_c0_c1'>
                <text class='saleDetails_fd1_1_c1_c0_c0_c0'>不完善颗粒</text>
                <text class='saleDetails_fd1_1_c1_c0_c0_c1'>{{info.buwanshan}}</text>
              </view>
              <view class='flex flex-wrap align-center saleDetails_fd1_1_c1_c0_c1'>
                <text class='saleDetails_fd1_1_c1_c0_c0_c0'>呕吐</text>
                <text class='saleDetails_fd1_1_c1_c0_c0_c1'>{{info.outu}}</text>
              </view>
            </view>
          </view>
        </view>
        <view class='flex flex-direction flex-wrap align-stretch saleDetails_fd1_1 '
          style="margin: 24rpx 0rpx 0rpx 0rpx;">
          <view class='flex flex-wrap align-center saleDetails_fd1_1_c0'>
            <text class='saleDetails_fd1_1_c0_c0'>粮食详情</text>
          </view>
          <view class='flex flex-wrap align-start saleDetails_fd1_1_c1'>
            <view class='flex flex-direction flex-wrap align-start'>
              <view class='flex flex-wrap align-center saleDetails_fd1_1_c1_c0_c1'>
                <text class='saleDetails_fd1_1_c1_c0_c0_c0'>货权</text>
                <text class='saleDetails_fd1_1_c1_c0_c0_c1'>{{info.huoquan}}</text>
              </view>
              <view class='flex flex-wrap align-center saleDetails_fd1_1_c1_c0_c1'>
                <text class='saleDetails_fd1_1_c1_c0_c0_c0'>库点</text>
                <text class='saleDetails_fd1_1_c1_c0_c0_c1'>{{info.kudian}}</text>
              </view>
            </view>
            <view class='flex flex-direction flex-wrap align-start'>
              <view class='flex flex-wrap align-center saleDetails_fd1_1_c1_c0_c1'>
                <text class='saleDetails_fd1_1_c1_c0_c0_c0'>出库期</text>
                <text class='saleDetails_fd1_1_c1_c0_c0_c1'>{{info.chukuqi}}</text>
              </view>
              <view class='flex flex-wrap align-center saleDetails_fd1_1_c1_c0_c1'>
                <text class='saleDetails_fd1_1_c1_c0_c0_c0'>开票</text>
                <text class='saleDetails_fd1_1_c1_c0_c0_c1'>{{info.kaipiao}}</text>
              </view>
            </view>
          </view>
        </view>
        <view class='flex flex-direction flex-wrap align-stretch saleDetails_fd1_1 '
          style="margin: 24rpx 0rpx 0rpx 0rpx;">
          <view class='flex flex-wrap align-center saleDetails_fd1_1_c2' style="margin: 25rpx 24rpx 25rpx 24rpx;"
            v-if="info.beizhu">
            <text class='saleDetails_fd1_1_c2_c0'>备注</text>
          </view>
          <view class='flex flex-wrap align-center saleDetails_fd1_1_c3' v-if="info.beizhu">
            <text class='saleDetails_fd1_1_c3_c0'>{{info.beizhu}}</text>
          </view>
          <view class='flex flex-wrap align-start saleDetails_fd1_1_c4' v-if="tpian.length">
            <text class='saleDetails_fd1_1_c4_c0'>图片</text>
            <view class='flex flex-wrap align-center flex-sub'>
              <view class='flex flex-wrap align-center'>
                <image class='saleDetails_fd1_1_c4_c1_c0_c0' @click="preveImage(index,tpian)"
                  v-for="(item,index) in tpian" :key="index" mode="aspectFill" :src='item'></image>
              </view>
            </view>
          </view>
          <view class='flex flex-wrap align-start saleDetails_fd1_1_c4' style="margin: 40rpx 24rpx 32rpx 24rpx;">
            <text class='text-red text-sm'>提醒：<text
                class="text-999 text-sm">大货买卖涉及金和风险较大，建议买家实地看货，确定粮质,货权·避免风险，惠找粮为信息发布平台，不涉及粮质保障及双方成交。如双方产生纠纷，惠找粮平台有义务积极配合其证据的提供和协调，但不对双方成交造成的纠纷及任何后果负责。</text></text>

          </view>
        </view>
        <view class="card" @tap.stop="handleJumpDiy" data-type="navigateTo"
          :data-url="`/pages/dlzc/agreements/dahuozhuanqu`">
          <image class='icons' mode="aspectFill" :src='STATIC_URL+"190.png"'></image>
        </view>
        <view class='flex flex-wrap align-center justify-between flex-sub saleDetails_fd1_2'>
          <view class='flex flex-wrap align-center justify-center saleDetails_fd1_2_c0'
            @tap.stop="popupShow1706715717630=true">
            <image class='saleDetails_fd1_2_c0_c0' mode="aspectFit" :src='STATIC_URL+"55.png"'></image>
            <text class='saleDetails_fd1_2_c0_c1'>转发给朋友</text>
          </view>
          <!-- <view class='flex flex-wrap align-center justify-center grainDetails_fd1_0_c1_c1'
            @click.stop="callPhones(info)" v-if="info.fenlei==2">
            <image class='grainDetails_fd1_0_c1_c0_c0' mode="aspectFit" :src='STATIC_URL+"62.png"'></image>
            <image class='grainDetails_fd1_0_c1_c0_c1' mode="aspectFit" :src='STATIC_URL+"64.png"'></image>
            <text class='grainDetails_fd1_0_c1_c0_c2'>立即联系</text>
          </view> -->
          <view class='flex flex-wrap align-center justify-center saleDetails_fd1_2_c1' @tap.stop="goLianxi()">
            <image class='saleDetails_fd1_2_c0_c0' mode="aspectFit" :src='STATIC_URL+"54.png"'></image>
            <text class='saleDetails_fd1_2_c0_c1'>立即联系</text>
            <!-- <view class='flex flex-wrap align-center saleDetails_fd1_2_c1_c2'>
              <text class='saleDetails_fd1_2_c1_c2_c0'>限时免费</text>
            </view> -->
          </view>
        </view>
      </view>

      <!---flex布局flex布局结束-->
      <benben-popup v-model="popupShow1706623522014" :mask="true" :mask-close-able="true" mode='center' :z-index='999'>
        <!---flex布局flex布局开始-->
        <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout saleDetails_flex_2">
          <view class='flex flex-direction flex-wrap align-center saleDetails_fd2_0'>
            <text class='saleDetails_fd2_0_c0'>友情提示</text>
            <text class='saleDetails_fd2_0_c1'>非会员暂无法拨打</text>
            <button class='saleDetails_fd2_0_c2' @tap.stop="handleJumpDiy" data-type="navigateTo"
              :data-url="`/pages/wode/rurchaseMembership/rurchaseMembership`">去充值会员</button>
          </view>
        </view>

        <!---flex布局flex布局结束-->

      </benben-popup>
      <benben-popup v-model="popupShow1706623173527" :mask="true" :mask-close-able="false" mode='center' :z-index='999'>
        <!---flex布局flex布局开始-->
        <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout saleDetails_flex_3">
          <view class='flex flex-direction flex-wrap align-stretch saleDetails_fd3_0'>
            <view class='flex flex-wrap align-center justify-center'>
              <text class='saleDetails_fd3_0_c0_c0'>友情提示</text>
            </view>
            <view class='flex flex-wrap align-center justify-center saleDetails_fd3_0_c1'>
              <text class='saleDetails_fd3_0_c1_c0'>双方合作注意粮款货款,惠找粮祝您
                生意兴隆</text>
            </view>
            <view class='flex flex-wrap align-center justify-center saleDetails_fd3_0_c2'>
              <button class='saleDetails_fd3_0_c2_c0' @tap.stop="popupShow1706623173527=false">取消</button>
              <button class='saleDetails_fd3_0_c2_c1' @tap.stop="callImmediatelyFunc()">立刻拨打</button>
            </view>
          </view>
        </view>

        <!---flex布局flex布局结束-->

      </benben-popup>
      <benben-popup v-model="popupShow1706623129622" :mask="true" :mask-close-able="false" mode='center' :z-index='999'>
        <!---flex布局flex布局开始-->
        <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout saleDetails_flex_4">
          <view class='flex flex-direction flex-wrap align-stretch saleDetails_fd4_0'>
            <view class='flex flex-wrap align-center justify-center'>
              <text class='saleDetails_fd4_0_c0_c0'>友情提示</text>
            </view>
            <view class='flex flex-wrap align-center justify-center saleDetails_fd4_0_c1'>
              <text class='saleDetails_fd4_0_c1_c0'>
                交易有风险涉及金钱要谨慎</text>
            </view>
            <view class='flex flex-wrap align-center justify-center saleDetails_fd4_0_c2'>
              <button class='saleDetails_fd4_0_c2_c0' @tap.stop="cancelCallFunc()">取消</button>
              <button class='saleDetails_fd4_0_c2_c1' @tap.stop="callPhone">立刻拨打</button>
            </view>
          </view>
        </view>

        <!---flex布局flex布局结束-->

      </benben-popup>


    </view>
    <benben-popup v-model="popupShow1706715717630" :mask="true" :mask-close-able="true" mode='bottom' :z-index='999'>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout releaseSale_flex_4">
        <view class='flex flex-direction flex-wrap align-stretch releaseSale_fd4_0'>
          <view class='flex flex-wrap align-center justify-between releaseSale_fd4_0_c0'>
            <view class='flex flex-wrap align-center releaseSale_fd4_0_c0_c0'>
            </view>
            <view class='flex flex-wrap align-center'>
              <image class='releaseSale_fd4_0_c0_c1_c0' mode="aspectFit" :src='STATIC_URL+"21.png"'></image>
              <text class='releaseSale_fd4_0_c0_c1_c1'>分享到</text>
              <image class='releaseSale_fd4_0_c0_c1_c0' mode="aspectFit" :src='STATIC_URL+"22.png"'></image>
            </view>
            <image class='releaseSale_fd4_0_c0_c2' mode="aspectFit" :src='STATIC_URL+"83.png"'
              @tap.stop="popupShow1706715717630=false"></image>
          </view>
          <view class='flex flex-wrap align-center justify-around releaseSale_fd4_0_c1'>
            <view class='flex flex-direction flex-wrap align-center' @click.stop="shareOpen('1')">
              <image class='releaseSale_fd4_0_c1_c0_c0' mode="aspectFit" :src='STATIC_URL+"23.png"'></image>
              <text class='releaseSale_fd4_0_c1_c0_c1'>微信好友</text>
            </view>
            <view class='flex flex-direction flex-wrap align-center' @click.stop="shareOpen('2')">
              <image class='releaseSale_fd4_0_c1_c0_c0' mode="aspectFit" :src='STATIC_URL+"84.png"'></image>
              <text class='releaseSale_fd4_0_c1_c0_c1'>朋友圈</text>
            </view>
          </view>
        </view>
      </view>

      <!---flex布局flex布局结束-->

    </benben-popup>
  </view>
</template>
<script>
  export default {
    components: {},


    data() {
      return {
        popupShow1706715717630: false,
        "popupShow1706623129622": false,
        "popupShow1706623173527": false,
        "popupShow1706623522014": false,
        "aid": "",
        info: '',
        tpian: [],
        address: {
          latitude: '',
          longitude: '',
          city: ''
        }
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {
      let {
        aid,
        type
      } = options
      if (aid !== undefined) this.aid = aid
      if (type !== undefined) this.type = type

    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {
      let that = this
      if (uni.getStorageSync('address')) {
        this.address = uni.getStorageSync('address')
        console.log('iiii', this.address)
      } else {
        this.getLocations()
      }
      this.getData()
    },
    onHide() {
      this.popupShow1706623522014 = false
      this.popupShow1706623173527 = false
      this.popupShow1706715717630 = false
    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      getLocations() {
        let that = this
        uni.showModal({
          title: '位置授权信息提示',
          content: '用于获取周边信息',
          success: function(res1) {
            uni.setStorageSync('once', "1")
            if (res1.confirm) {
              uni.getLocation({
                type: 'gcj02',
                // #ifdef APP
                geocode: true,
                // #endif
                isHighAccuracy: true,
                success: adr => {
                  console.log('adradradradr', adr)
                  const obj = {
                    latitude: adr.latitude,
                    longitude: adr.longitude,
                    city: adr.address.city
                  }
                  uni.setStorageSync('address', obj)
                  that.address = uni.getStorageSync('address')
                }
              })
            }
          }
        })
      },
      shareOpen(type) {
        let that = this
        console.log("complete:");
        let provider = ''
        let scene = ''
        if (type == 1) {
          provider = 'weixin'
          scene = 'WXSceneSession'
        } else if (type == 2) {
          provider = 'weixin'
          scene = 'WXSenceTimeline'
        }
        // let links = that.apartmentDetails.h5_share +
        //   `/pages/shouye/apartmentDetails/apartmentDetails?id=${that.apartmentDetails.aid}`
        // console.log(' that.apartmentDetails', links)
        uni.share({
          provider: provider,
          scene: scene,
          // type: '0',
          imageUrl: that.info.share_img,
          title: that.info.title,
          summary: that.info.share_text,
          href: that.info.h5_share,
          success: function(res) {
            console.log('22222')
            console.log("success:" + JSON.stringify(res));
            that.shareApp()
          },
          fail: function(err) {
            console.log("fail:" + JSON.stringify(err));
          }
        });
      },
      shareApp() {
        this.$api.post(global.apiUrls.post6614f414e5638, {
          buy_id: this.aid,
          user_id: this.userInfo ? this.userInfo.id : ''
        }).then(res => {
          if (res.data.code == 1) {
            this.getData()
          }
        })
      },
      getData() {
        this.$api.post(global.apiUrls.post66160b1c0b581, {
          aid: this.aid,
          lat: this.address.latitude,
          lng: this.address.longitude
        }).then(res => {
          if (res.data.code == 1) {
            this.info = res.data.data
            this.tpian = this.info.tupian
          }
        })
      },
      preveImage(index, list) {
        uni.previewImage({
          urls: list,
          current: index
        })
      },
      //立刻拨打
      callImmediatelyFunc() {
        this.popupShow1706623173527 = false;
        this.popupShow1706623129622 = true;
      },
      //取消拨打
      cancelCallFunc() {
        this.popupShow1706623129622 = false;
        this.popupShow1706623173527 = false;
      },
      callPhones() {
        if (this.info.is_vip) {
          this.popupShow1706623129622 = true
        } else {
          this.popupShow1706623522014 = true
        }
      },
      callPhone() {
        uni.makePhoneCall({
          phoneNumber: this.info.is_vip ? this.info.huozhudianhua : this.info.guanfangdianhua
        })
        this.popupShow1706623129622 = false
      },
      // 免费联系
      goLianxi() {
        this.popupShow1706623173527 = true;
      },
      //免费联系
      freecontactFunc() {
        if (this.info.is_vip) {
          this.popupShow1706623173527 = true;
        } else {
          this.popupShow1706623522014 = true;
        }
      }
    }
  };
</script>
<style lang="scss" scoped>
  .card {
    width: 690rpx;
    height: 204rpx;
    margin: 32rpx auto;

    image {
      width: 100%;
      height: 100%;
    }
  }

  .grainDetails_fd1_0_c0_c0 {
    width: 220rpx;
    height: 266rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
    margin: 0rpx 24rpx 0rpx 0rpx;
  }

  .grainDetails_fd1_0_c0_c1_c0 {
    color: #101010;
    font-size: 34rpx;
    font-weight: 500;
    line-height: 34rpx;
  }

  .grainDetails_fd1_0_c0_c1_c1 {
    color: #666666;
    font-size: 28rpx;
    font-weight: 400;
    line-height: 28rpx;
    margin: 14rpx 0rpx 0rpx 0rpx;
  }

  .grainDetails_fd1_0_c0_c1_c2_c3 {
    color: #2568AE;
    font-size: 24rpx;
    font-weight: 400;
    line-height: 32rpx;
  }

  .grainDetails_fd1_0_c0_c1_c2_c0 {
    color: rgba(153, 153, 153, 1);
    font-size: 24rpx;
    font-weight: 400;
    line-height: 32rpx;
  }

  .grainDetails_fd1_0_c0_c1_c2 {
    margin: 10rpx 0rpx 0rpx 0rpx;
  }

  .grainDetails_fd1_0_c0_c1_c3_c1_c0 {
    color: #667D91;
    font-size: 24rpx;
    font-weight: 500;
    line-height: 24rpx;
  }

  .grainDetails_fd1_0_c0_c1_c3_c1 {
    background: rgba(244, 247, 255, 1);
    margin: 0rpx 24rpx 0rpx 0rpx;
    padding: 4rpx 14rpx 4rpx 14rpx;
    border-radius: 4rpx;
    background-size: 100% auto;
  }

  .grainDetails_fd1_0_c0_c1_c3_c0 {
    color: #333333;
    font-size: 28rpx;
    font-weight: 400;
    line-height: 32rpx;
  }

  .grainDetails_fd1_0_c0_c1_c3 {
    margin: 24rpx 0rpx 0rpx 0rpx;
  }

  .grainDetails_fd1_0_c1_c1 {
    background: linear-gradient(90deg, #FBEBCC 0%, #F8D48F 100%);
    width: 300rpx;
    height: 80rpx;
    border-radius: 24rpx;
    background-size: 100% auto;
    position: relative;
  }

  .grainDetails_fd1_0_c1_c0_c2 {
    color: #624314;
    font-size: 32rpx;
    font-weight: 700;
    line-height: 32rpx;
  }

  .grainDetails_fd1_0_c1_c0_c1 {
    width: 40rpx;
    height: 40rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
    margin: 0rpx 11rpx 0rpx 0rpx;
  }

  .grainDetails_fd1_0_c1_c0_c0 {
    width: 72rpx;
    height: 29rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
    position: absolute;
    top: 0rpx;
    left: 0rpx;
    z-index: 1;
  }

  .releaseSale_flex_4 {
    background: rgba(255, 255, 255, 1);
    border-radius: 40rpx 40rpx 0rpx 0rpx;
    background-size: 100% auto;
  }

  .releaseSale_fd4_0_c1_c0_c1 {
    color: #333333;
    margin: 16rpx 0rpx 0rpx 0rpx;
    font-size: 24rpx;
    font-weight: 400;
    line-height: 46rpx;
  }

  .releaseSale_fd4_0_c1_c0_c0 {
    width: 80rpx;
    height: 80rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }

  .releaseSale_fd4_0_c1 {
    margin: 50rpx 0rpx 0rpx 0rpx;
  }

  .releaseSale_fd4_0_c0_c2 {
    width: 40rpx;
    height: 40rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }

  .releaseSale_fd4_0_c0_c1_c1 {
    margin: 0rpx 20rpx 0rpx 20rpx;
    color: #333333;
    font-size: 32rpx;
    font-weight: 400;
    line-height: 46rpx;
  }

  .releaseSale_fd4_0_c0_c1_c0 {
    width: 28rpx;
    height: 10rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }

  .releaseSale_fd4_0_c0_c0 {
    width: 40rpx;
    height: 40rpx;
  }

  .releaseSale_fd4_0_c0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .releaseSale_fd4_0 {
    padding: 40rpx 0rpx 56rpx 0rpx;
  }

  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: rgba(248, 248, 250, 1);
    background-size: 100% auto;
    padding-bottom: 120rpx;
  }

  .saleDetails_flex_0 {
    background: rgba(255, 255, 255, 1);
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto;
  }

  .saleDetails_fd0_0_c2_c0 {
    width: 119rpx;
    height: 55rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }

  .saleDetails_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    line-height: 50rpx;
  }

  .saleDetails_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .saleDetails_fd0_0_c0 {
    width: 120rpx;
  }

  .saleDetails_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .saleDetails_flex_1 {
    padding: 24rpx 30rpx 60rpx 30rpx;
  }

  .saleDetails_fd1_2_c1_c2_c0 {
    color: #FFFFFF;
    font-size: 20rpx;
    font-weight: 700;
    line-height: 20rpx;
  }

  .saleDetails_fd1_2_c1_c2 {
    background: url(image-path('51.png')) no-repeat;
    background-size: 100% auto;
    position: absolute;
    top: 0rpx;
    left: 0rpx;
    padding: 4rpx 10rpx 4rpx 10rpx;
  }

  .saleDetails_fd1_2_c1 {
    background: rgba(37, 104, 174, 1);
    width: 333rpx;
    height: 88rpx;
    border-radius: 24rpx;
    background-size: 100% auto;
    position: relative;
  }

  .saleDetails_fd1_2_c0_c1 {
    color: rgba(255, 255, 255, 1);
    font-size: 34rpx;
    font-weight: 400;
    line-height: 34rpx;
  }

  .saleDetails_fd1_2_c0_c0 {
    width: 36rpx;
    height: 36rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
    margin: 0rpx 16rpx 0rpx 0rpx;
  }

  .saleDetails_fd1_2_c0 {
    background: rgba(77, 199, 119, 1);
    width: 333rpx;
    height: 88rpx;
    border-radius: 24rpx;
    background-size: 100% auto;
  }

  .saleDetails_fd1_2 {
    margin: 33rpx 0rpx 0 0rpx;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24rpx;
    background-color: #FFFFFF;
    z-index: 9;
  }

  .saleDetails_fd1_1_c4_c1_c0_c0 {
    width: 170rpx;
    height: 170rpx;
    border-radius: 8rpx;
    margin: 10rpx 10rpx 0 0
  }

  .saleDetails_fd1_1_c4_c0 {
    margin: 0rpx 46rpx 0rpx 0rpx;
    color: #333333;
    font-size: 32rpx;
    font-weight: 400;
    line-height: 32rpx;
  }

  .saleDetails_fd1_1_c4 {
    margin: 0rpx 24rpx 32rpx 24rpx;
  }

  .saleDetails_fd1_1_c3_c0 {
    color: #101010;
    font-size: 28rpx;
    font-weight: 400;
    line-height: 48rpx;
  }

  .saleDetails_fd1_1_c3 {
    background: rgba(248, 248, 250, 1);
    margin: 0rpx 24rpx 32rpx 24rpx;
    border-radius: 16rpx;
    background-size: 100% auto;
    padding: 24rpx;
  }

  .saleDetails_fd1_1_c2_c0 {
    color: #333333;
    font-size: 28rpx;
    font-weight: 400;
    line-height: 32rpx;
  }

  .saleDetails_fd1_1_c2 {
    margin: 0rpx 24rpx 25rpx 24rpx;
  }

  .saleDetails_fd1_1_c1_c0_c1 {
    margin: 24rpx 0rpx 0rpx 0rpx;
  }

  .saleDetails_fd1_1_c1_c0_c0_c1 {
    color: #101010;
    font-size: 28rpx;
    font-weight: 400;
    line-height: 32rpx;
  }

  .saleDetails_fd1_1_c1_c0_c0_c0 {
    margin: 0rpx 56rpx 0rpx 0rpx;
    color: #666666;
    font-size: 28rpx;
    font-weight: 400;
    line-height: 32rpx;
  }

  .saleDetails_fd1_1_c1_c0 {
    margin: 0rpx 178rpx 0rpx 0rpx;
  }

  .saleDetails_fd1_1_c1 {
    margin: 24rpx 24rpx 32rpx 24rpx;
  }

  .saleDetails_fd1_1_c0_c0 {
    color: #101010;
    font-size: 32rpx;
    font-weight: 500;
    line-height: 32rpx;
  }

  .saleDetails_fd1_1_c0 {
    background: url(image-path('8.png')) no-repeat;
    padding: 32rpx 0rpx 32rpx 24rpx;
    background-size: 100% auto;
    border-radius: 16rpx 16rpx 0rpx 0rpx;
  }

  .saleDetails_fd1_1 {
    background: rgba(255, 255, 255, 1);
    border-radius: 16rpx;
    background-size: 100% auto;
    margin: 0rpx 0rpx 0rpx 0rpx;
  }

  .saleDetails_fd1_0_c2 {
    padding: 32rpx 0rpx 32rpx 0rpx;
  }

  .saleDetails_fd1_0_c0_c1_c0 {
    color: #101010;
    font-size: 32rpx;
    font-weight: 400;
    line-height: 32rpx;
  }

  .saleDetails_fd1_0_c0_c0 {
    color: #666666;
    font-size: 32rpx;
    font-weight: 400;
    line-height: 32rpx;
  }

  .saleDetails_fd1_0_c0 {
    border-bottom: 1px solid #eee;
    padding: 32rpx 0rpx 32rpx 0rpx;
  }

  .saleDetails_fd1_0 {
    background: rgba(255, 255, 255, 1);
    border-radius: 16rpx;
    background-size: 100% auto;
    margin: 0rpx 0rpx 24rpx 0rpx;
    padding: 0rpx 24rpx 0rpx 24rpx;
  }

  .saleDetails_flex_2 {
    background: rgba(255, 255, 255, 1);
    width: 540rpx;
    border-radius: 16rpx;
    background-size: 100% auto;
  }

  .saleDetails_fd2_0_c2 {
    background: rgba(37, 104, 174, 1);
    border-radius: 100rpx;
    width: 379rpx;
    line-height: 80rpx;
    font-size: 34rpx;
    color: #fff;
    margin: 40rpx 0rpx 0rpx 0rpx;
  }

  .saleDetails_fd2_0_c1 {
    color: #333333;
    font-size: 30rpx;
    font-weight: 400;
    line-height: 52rpx;
    text-align: center;
    margin: 22rpx 0rpx 0rpx 0rpx;
  }

  .saleDetails_fd2_0_c0 {
    color: #101010;
    font-size: 32rpx;
    font-weight: 500;
    line-height: 32rpx;
  }

  .saleDetails_fd2_0 {
    padding: 40rpx 0rpx 40rpx 0rpx;
  }

  .saleDetails_flex_3 {
    background: rgba(255, 255, 255, 1);
    border-radius: 16rpx;
    background-size: 100% auto;
    width: 540rpx;
  }

  .saleDetails_fd3_0_c2_c1 {
    background: rgba(37, 104, 174, 1);
    border-radius: 100rpx;
    width: 209rpx;
    line-height: 80rpx;
    font-size: 34rpx;
    color: #fff;
    margin: 0rpx 0rpx 0rpx 20rpx;
  }

  .saleDetails_fd3_0_c2_c0 {
    border: 1px solid rgba(102, 102, 102, 1);
    background: rgba(255, 255, 255, 1);
    border-radius: 100rpx;
    width: 209rpx;
    line-height: 80rpx;
    font-size: 34rpx;
    color: rgba(102, 102, 102, 1);
    margin: 0rpx 20rpx 0rpx 0rpx;
  }

  .saleDetails_fd3_0_c2 {
    margin: 40rpx 0rpx 0rpx 0rpx;
  }

  .saleDetails_fd3_0_c1_c0 {
    color: #333333;
    font-size: 30rpx;
    font-weight: 400;
    line-height: 52rpx;
    text-align: center;
  }

  .saleDetails_fd3_0_c1 {
    margin: 22rpx 0rpx 0rpx 0rpx;
  }

  .saleDetails_fd3_0_c0_c0 {
    color: #101010;
    font-size: 32rpx;
    font-weight: 500;
    line-height: 32rpx;
  }

  .saleDetails_fd3_0 {
    padding: 40rpx 0rpx 40rpx 0rpx;
  }

  .saleDetails_flex_4 {
    background: rgba(255, 255, 255, 1);
    width: 540rpx;
    border-radius: 16rpx;
    background-size: 100% auto;
  }

  .saleDetails_fd4_0_c2_c1 {
    background: rgba(37, 104, 174, 1);
    border-radius: 100rpx;
    width: 209rpx;
    line-height: 80rpx;
    font-size: 34rpx;
    color: #fff;
    margin: 0rpx 0rpx 0rpx 20rpx;
  }

  .saleDetails_fd4_0_c2_c0 {
    border: 1px solid rgba(102, 102, 102, 1);
    background: rgba(255, 255, 255, 1);
    border-radius: 100rpx;
    width: 209rpx;
    line-height: 80rpx;
    font-size: 34rpx;
    color: rgba(102, 102, 102, 1);
    margin: 0rpx 20rpx 0rpx 0rpx;
  }

  .saleDetails_fd4_0_c2 {
    margin: 40rpx 0rpx 0rpx 0rpx;
  }

  .saleDetails_fd4_0_c1_c0 {
    color: #333333;
    font-size: 30rpx;
    font-weight: 400;
    line-height: 52rpx;
    text-align: center;
  }

  .saleDetails_fd4_0_c1 {
    margin: 22rpx 0rpx 0rpx 0rpx;
  }

  .saleDetails_fd4_0_c0_c0 {
    color: #101010;
    font-size: 32rpx;
    font-weight: 500;
    line-height: 32rpx;
  }

  .saleDetails_fd4_0 {
    padding: 40rpx 0rpx 40rpx 0rpx;
  }
</style>
